package com.ynu.yx.chatroleai.converter;


import com.ynu.yx.chatroleai.dto.UserDto;
import com.ynu.yx.chatroleai.dto.UserRegisterDto;
import com.ynu.yx.chatroleai.model.User;
import org.mapstruct.Mapper;


@Mapper(componentModel = "spring")
public interface UserConverter {
    UserDto toDto(User user);
    User reDtoToUser(UserRegisterDto urdto);
}
